package com.yfp.client.service;

import com.yfp.client.domain.ActivitySignInsClients;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 *
 * @description 针对表【activity_sign_ins_clients(打卡管理-参与用户表)】的数据库操作Service
 * @createDate 2025-01-03 17:46:13
 */
public interface ActivitySignInsClientsService extends IService<ActivitySignInsClients> {

    /**
     * 加入活动
     *
     * @param activitySignInsId
     */
    void joinActivity(Long activitySignInsId);

    /**
     * 是否已加入活动
     *
     * @param activitySignInsId
     * @return true 已加入, false 未加入
     */
    Boolean joined(Long activitySignInsId);

    /**
     * 根据用户id和活动id查询活动参与用户
     *
     * @param activitySignInsId
     * @return
     */
    ActivitySignInsClients getByClientAndId(Long activitySignInsId);
}
